<template>
    <div>
        <van-search placeholder="请输入搜索关键词" @search="search" v-model="value" background="linear-gradient(0deg, #f1a42a,#f9c607 50%)" shape="round"/>
    </div>
</template>

<script>
import Vue from 'vue';
import { Search } from 'vant';
Vue.use(Search);
export default {
    name: "search",
    data() {
        return {
            value: ''
        }
    },
    methods: {
        search: function (value) {
            console.log(value)
        }
    }
}
</script>

<style scoped>

</style>
